#include "common.hpp"
int main()
{
    // 创建shm
    int shmId = createShm();
    // 获取共享内存
    char *mem = (char *)attachShm(shmId);
    // 读取数据
    while (true)
    {
        printf("Server:%s\n ", mem);
        sleep(1);
    }
    // 去关联
    detachShm(mem);
    // 清楚shm
    removeShm(shmId);
}